#ifndef _LICENSEEXPORT_H_
#define _LICENSEEXPORT_H_

#ifdef WIN32
	#ifdef _IMPORT_
	#define CALLMOTHED extern "C" __declspec(dllimport)
	#endif

	#ifdef _EXPORT_
	#define CALLMOTHED extern "C" __declspec(dllexport)
	#endif

	#ifndef CALLMOTHED
	#define CALLMOTHED extern "C" __declspec(dllimport)
	#endif
#else
	#define CALLMOTHED extern "C"
	#define __stdcall	
#endif

/* Describe:
	*  Verify the certificate
	* Input:
	szFileName -- a string contain the path of the certificate 
	* Output:
	license -- a structure contain all of licensed information.	
	* Return:
	* 0 -- success
	* -1 -- Open File failed
	* -2 -- Verify the certificate failed.
*/
namespace License
{
	CALLMOTHED int __stdcall VerifyCertificate(const char *szFileName);

	CALLMOTHED int __stdcall Init( void* pInitPara );
}

#endif